import { createApp } from 'vue';
import './style.css'
import App from './App.vue';
import i18n from './i18n';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
const app = createApp(App);

const userLanguage = navigator.language || navigator.userLanguage;
const defaultLanguage = userLanguage.includes('zh') ? 'zh' : 'en';
i18n.global.locale.value = defaultLanguage;
app.use(ElementPlus);
app.use(i18n);
app.mount('#app');